<html>
<head> 
  <link href="./bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="css/artur.css" rel="stylesheet">
  <title>Informatica Medica</title> 
</head>

<body>


  <!-- Fixed navbar -->
  <!-- Fixed navbar -->
  <div class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">Informatica Medica</a>
      </div>
      <div class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
          <li class="active"><a href="#">Inicio</a></li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Opciones <b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li><a href="#">Subir imagen</a></li>
              <li><a href="historial.php">Historial Nutricional</a></li>
              <!--href="login.php">  -->
              <li><a href="#">Something else here</a></li>
              <li class="divider"></li>
              <li class="dropdown-header">Nav header</li>
              <li><a href="#">Separated link</a></li>
              <li><a href="#">One more separated link</a></li>
            </ul>
          </li>
          <li><a href="#about">Acerca de</a></li>
          <li><a href="#contact">Contacto</a></li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <li class="active"><a href="logout.php">Cerrar Sesion</a></li>
        </ul>
      </div><!--/.nav-collapse -->
    </div>
  </div>

  <div class="container artur-form">
    <div class="row">
     <?php
          session_start(); //starts the session
          if($_SESSION['user']){ // checks if the user is logged in  
          }
          else{
            header("location: index.php"); // redirects if user is not logged in
          }
          $user = $_SESSION['user']; //assigns user value
          ?>
          <!--Display's user name-->


          <form action="upload.php" method="post"
          enctype="multipart/form-data">
          <label for="file">Filename:</label>
          <input type="file" name="file" id="file"><br> 

          Descripcion: <input type="text" name="description"/> <br/> 
          Dia de la comida: <input type="text" name="date"/> <br>
          tipo: <input type="text" name="type"/> <br>

          <input type="submit" name="submit" value="Submit">
        </form>
      </div>
    </div>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="./bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>
  </body>

  </html>